arglist_t garmin_args[] = {
{ "snlen", &snlen, "Length of generated shortnames", NULL,
ARGTYPE_INT },
- { "snwhite", &snwhiteopt, "(0/1) Allow whitespace synth. shortnames",
+ { "snwhite", &snwhiteopt, "Allow whitespace synth. shortnames",
NULL, ARGTYPE_BOOL},
{ "deficon", &deficon, "Default icon name", NULL, ARGTYPE_STRING },
{ "get_posn", &getposn, "Return current position as a waypoint",
static
arglist_t mps_args[] = {
{"snlen", &snlen, "Length of generated shortnames", NULL, ARGTYPE_INT },
- { "snwhite", &snwhiteopt, "(0/1) Allow whitespace synth. shortnames",
+ { "snwhite", &snwhiteopt, "Allow whitespace synth. shortnames",
NULL, ARGTYPE_BOOL},
{"mpsverout", &mpsverout,
"Version of mapsource file to generate (3,4,5)", NULL,
arglist_t ozi_args[] = {
{"snlen", &snlenopt, "Max synthesized shortname length",
NULL, ARGTYPE_INT},
- {"snwhite", &snwhiteopt, "(0/1) Allow whitespace synth. shortnames",
+ {"snwhite", &snwhiteopt, "Allow whitespace synth. shortnames",
NULL, ARGTYPE_BOOL},
- {"snupper", &snupperopt, "(0/1) UPPERCASE synth. shortnames",
+ {"snupper", &snupperopt, "UPPERCASE synth. shortnames",
NULL, ARGTYPE_BOOL},
- {"snunique", &snuniqueopt, "(0/1) Make synth. shortnames unique",
+ {"snunique", &snuniqueopt, "Make synth. shortnames unique",
NULL, ARGTYPE_BOOL},
{0, 0, 0, 0, 0}
};
static
arglist_t tpo_args[] = {
- { "dumpheader", &dumpheader, "(0/1) Display the file header bytes",
+ { "dumpheader", &dumpheader, "Display the file header bytes",
"0", ARGTYPE_BOOL} ,
{ "state", &output_state, "State map format to write, default=CA",
"CA", ARGTYPE_STRING} ,
printf(VEC_FMT, svp[i]->name, svp[i]->desc);
for (ap = svp[i]->vec->args; ap && ap->argstring; ap++) {
if ( !(ap->argtype & ARGTYPE_HIDDEN))
- printf(" %-18.18s %-.50s %s\n",
- ap->argstring, ap->helpstring,
+ printf(" %-18.18s %s%-.50s %s\n",
+ ap->argstring,
+ (ap->argtype & ARGTYPE_TYPEMASK) ==
+ ARGTYPE_BOOL ? "(0/1) " : "",
+ ap->helpstring,
(ap->argtype & ARGTYPE_REQUIRED)?"(required)":"");
}
}
ARGTYPE_FILE | ARGTYPE_REQUIRED },
{"snlen", &snlenopt, "Max synthesized shortname length", NULL,
ARGTYPE_INT},
- {"snwhite", &snwhiteopt, "(0/1) Allow whitespace synth. shortnames",
+ {"snwhite", &snwhiteopt, "Allow whitespace synth. shortnames",
NULL, ARGTYPE_BOOL},
- {"snupper", &snupperopt, "(0/1) UPPERCASE synth. shortnames",
+ {"snupper", &snupperopt, "UPPERCASE synth. shortnames",
NULL, ARGTYPE_BOOL},
- {"snunique", &snuniqueopt, "(0/1) Make synth. shortnames unique",
+ {"snunique", &snuniqueopt, "Make synth. shortnames unique",
NULL, ARGTYPE_BOOL},
{"urlbase", &xcsv_urlbase, "Basename prepended to URL on output",
NULL, ARGTYPE_STRING},